package com.vcredit.creditcat.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.vcredit.bird.service.ympush.PushService;
import com.vcredit.bird.vo.ympush.PushInputParamVo;

@Controller
public class PushController {
	
	@Autowired
	private PushService pushService;

	@RequestMapping("/ympush")
	@ResponseBody
	public String push(@RequestBody PushInputParamVo param) {
		try {
			pushService.push(param);
			return "success";
		} catch (Exception e) {
		}
		return "fail";
	}
}
